//
//  XPPXcodePreferences.h
//  XPPXcodePlugin
//
//  Created by yoyokko on 10-4-21.
//  Copyright 2010 yoyokko@gmail.com. All rights reserved.
//

#import "PBXPreferencesPaneModule.h"


@interface XPPXcodePreferences : PBXPreferencesPaneModule {

	// controls if they want the menuitem icons
	IBOutlet NSButton *showImageOnMenuItems_;

	IBOutlet NSButton *enableDefaultKeys_;

	IBOutlet NSButton *enableUseDefinedKeys_;
	
	IBOutlet NSButton *selectionAllToReindent_;
	
	IBOutlet NSButton *reloadUserDefinedFile_;
	
	IBOutlet NSPopUpButton *keyboardLayoutType_;
	
	IBOutlet NSImageView	*previewImage;
	
	IBOutlet NSMatrix		*conflictTypeRadio_;

}
+ (BOOL) showImageOnMenuItems;
- (IBAction) checkBoxAction:(id) sender;
- (IBAction) keyboardLayoutSelectionChanged:(id) sender;
- (IBAction) detectKeyboardLayout:(id) sender;
- (IBAction) reloadUserDefinedFile:(id) sender;
- (IBAction) openTheFile:(id) sender;
- (void) showPreviewImageWithTag:(int) tag;
@end

// we use our own notifications so the plugin doesn't have to cache values and
// check for changes since the normal defaults change notification fires off
// like crazy.
extern NSString * const XPPXcodePreferencesMenuItemPrefChanged;
